package com.csu.bailan.util;

import com.csu.bailan.dto.CsvBean;
import com.opencsv.bean.CsvToBeanBuilder;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.List;

public class CSVUtil {

    public static List<CsvBean> parseApparels(String csvpath) throws FileNotFoundException {
        List<CsvBean> beans = new CsvToBeanBuilder(new FileReader(csvpath)).withType(CsvBean.class).build().parse();
        return beans;
    }

}
